<template>
  <div class="container">
    <div class="posi">
      <p class="title">南雪慢性疾病管理系统</p>
      <p class="title_eng">
        Nanxue&nbsp;chronic&nbsp;disease&nbsp;management&nbsp;system
      </p>
      <login-account v-if="isLogin" v-model="isLogin" :i="i"></login-account>
      <password-reset v-else v-model="isLogin"></password-reset>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent, ref } from 'vue'
import LoginAccount from './cnps/login-account.vue'
import PasswordReset from './cnps/password-reset.vue'

export default defineComponent({
  name: 'login',
  props: {
    i: String //路由解耦
  },
  components: {
    LoginAccount,
    PasswordReset
  },
  setup() {
    let isLogin = ref(true)
    return {
      isLogin
    }
  }
})
</script>
<style lang="less" scoped>
.container {
  position: relative;
  height: 100%;
  width: 100%;
  background: url('~@/assets/img/bg/bg.png') no-repeat;
  .posi {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 743px;
    transform: translate(-50%, -50%);
    .title {
      font-size: 56px;
      color: #2b84f2;
      margin-bottom: 27px;
    }
    .title_eng {
      font-size: 31px;
      color: #2b84f2;
      margin-bottom: 100px;
    }
  }
}
</style>
